package cloud.luyi.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 卢意
 * @create 2020-10-25 15:43
 */
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-SERVICE" ,fallback = PaymentFallBackService.class)
public interface PaymentHystrixService {
	@GetMapping("/payment/hystrix/ok/{id}")
	public String paymentInfo_ok(@PathVariable(value = "id") Integer id);

	@GetMapping("/payment/hystrix/timeout/{id}")
	public String paymentInfo_timeout(@PathVariable(value = "id") Integer id);
}
